home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9677 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  891 b 

  1. Path: news.io.com!usenet
  2. From: langj@jcave.com (Jonathan Lang)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: classes nested within template classes
  5. Date: Sun, 03 Mar 1996 20:59:21 GMT
  6. Organization: Illuminati Online
  7. Message-ID: <4hctfj$gmg@anarchy.io.com>
  8. References: <NICKC.96Mar3183317@uxe.liv.ac.uk>
  9. NNTP-Posting-Host: p152.jcave.com
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. nickc@liv.ac.uk (Spider plant breeding program) wrote:
  13.  
  14. >(Yes, the problem was found with a linked list!)
  15. >The SUN C++ compiler I'm using refuses to allow non-inline functions in classes
  16. >nested with template classes. It generates errors of the form:
  17.  
  18. >"linkedlist.h", line 30: Error: Member functions in a class local to a template
  19. >must be defined in the class.
  20.  
  21. >Should I be able to have non-inline functions within classes local to a template
  22.  
  23. Yes, you should be able to do this.  
  24. -- Jonathan Lang (langj@jcave.com)
  25.  
  26.